import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/principal_responsibilities_list_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/principal_responsibilities_list_entity.g.dart';

@JsonSerializable()
class PrincipalResponsibilitiesListEntity {
  PrincipalResponsibilitiesListEntity();

  factory PrincipalResponsibilitiesListEntity.fromJson(Map<String, dynamic> json) => $PrincipalResponsibilitiesListEntityFromJson(json);
  String? id;
  String? companyCode;
  String? typeName;
  dynamic path;
  String? parentId;
  String? createBy;
  dynamic createById;
  String? createDate;
  String? updateBy;
  dynamic updateById;
  String? updateDate;
  String? deleted;
  /// 是否展开
  bool? isExpand = false;
  ///	子集
  List<PrincipalResponsibilitiesListEntity>? children = [];

  Map<String, dynamic> toJson() => $PrincipalResponsibilitiesListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
